package com.checker.designPattern.creation.factory;

interface TestObject {
    String show();
}

class ObjectA implements TestObject {
    String info;

    public ObjectA(String info) {
        this.info = info;
    }

    @Override
    public String show() {
        return info;
    }
}

class ObjectB implements TestObject {
    String info;

    public ObjectB(String info) {
        this.info = info;
    }

    @Override
    public String show() {
        return info;
    }
}